import Vue from 'vue'
import App from './App'
import MpvueRouterPatch from 'mpvue-router-patch'
import '../static/weui/weui.css'

Vue.config.productionTip = false
App.mpType = 'app'

Vue.use(MpvueRouterPatch)

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      // ------------------ accounts -------------------
      '^pages/accounts/login/main',
      'pages/accounts/enterpriselogin/main',
      'pages/accounts/forgetpassword/main',
      'pages/accounts/forgetpasswordfinish/main',
      'pages/accounts/bindingcellphone/main',
      // ------------------ home ------------------------
      'pages/home/main',
      // ------------------ contract ------------------------
      'pages/contract/contract_overview/main',
      'pages/contract/contract_detail/main',
      // ------------------ bill ------------------------
      'pages/bill/bill_overview/main',
      'pages/bill/bill_detail/main',
      'pages/bill/bill_pay/main',
      // ------------------ energy ------------------------
      'pages/energy/energy_manage/main',
      'pages/energy/electric_detail/main',
      'pages/energy/water_detail/main',
      // ------------------ meeting ------------------------
      'pages/meeting/meeting_order_overview/main',
      'pages/meeting/meeting_detail/main',
      'pages/meeting/meeting_booking/main',
      'pages/meeting/order_detail/main',
      // ------------------ message -------------------
      'pages/message/index/main',
      'pages/message/sys_detail/main',
      // ------------------ me ------------------------
      'pages/me/index/main',
      'pages/me/setting/main',
      'pages/me/binding_accounts/main',
      'pages/me/about_us/main',
      'pages/me/feedback/main',
      'pages/me/contract_coustom_server/main',
      'pages/me/userinfo_edit/main'
    ],
    window: {
      backgroundTextStyle: 'dark',
      navigationBarBackgroundColor: '#fff',
      navigationBarTextStyle: 'black',
      backgroundColor: '#f4f5f9'
    },
    tabBar: {
      backgroundColor: '#fff',
      borderStyle: 'white',
      selectedColor: '#4A96F3',
      color: '#A4AAB3',
      list: [
        {
          pagePath: 'pages/home/main',
          text: '首页',
          iconPath: 'static/img/home_dark.png',
          selectedIconPath: 'static/img/home_light.png'
        },
        {
          pagePath: 'pages/message/index/main',
          text: '消息',
          iconPath: 'static/img/message_dark.png',
          selectedIconPath: 'static/img/message_light.png'
        },
        {
          pagePath: 'pages/me/index/main',
          text: '我的',
          iconPath: 'static/img/me_dark.png',
          selectedIconPath: 'static/img/me_light.png'
        }
      ]
    }
  }
}
